<template>
  <div>
    <IndexHeader></IndexHeader>
    <div class="content">
      <div class="card-header row between align-center">
        <span class="font20">{{category}}</span>
        <span type="text" class="row font14"
          >当前位置：首页&nbsp;&nbsp;>&nbsp;&nbsp;{{category}}</span
        >
      </div>
      <div v-html="content"></div>
    </div>
  </div>
</template>

<script>
import IndexHeader from "@/components/IndexHeader";
export default {
  name: "articalDetail",
  components: {
    IndexHeader,
  },
  data() {
    return {
      content: null,
      category: null,
    };
  },
  mounted() {
    console.log(this.$route.params)
    this.content = this.$route.params.content;
    if (this.$route.params.category != undefined) {
      if (this.$route.params.category == "0") {
        this.category = "新闻资讯";
      } else if (this.$route.params.category == "1") {
        this.category = "通知通告";
      } else {
        this.category = "文件下载";
      }
    }
  },
};
</script>

<style scoped>
.content {
  margin: 14px 400px 14px;
  padding: 14px;
  box-shadow: 0px 0px 10px #f4f4f4;
}
.card-header {
  line-height: 33px;
  height: 33px;
  background: url(http://scsbk.ycfuture.cn/templates/system/green/img/place-bg.png)
    repeat;
  padding: 10px 20px;
  color: #ffffff;
  margin-bottom: 15px;
}
</style>